package com.example.zsr.downloadcontinue.entity;

import java.io.File;
import java.io.Serializable;

/**
 * 用serializable就可以接受intent的参数了
 * @author zhengshaorui
 *
 */
public class FileInfo implements Serializable{

	private int id;
	private String apkurl;
	private String fileDir;
	private String fileName;
	private int length;
	private File Dir;
	private int finished;
	private int threadCount;
	private int progress;
	private float filedown;
	private float filesize;
	private int btnstatus;

	private float speed;


	public int getBtnstatus() {
		return btnstatus;
	}

	public void setBtnstatus(int btnstatus) {
		this.btnstatus = btnstatus;
	}

	public FileInfo(String apkurl, String fileName, String fileDir, File dir, int length,
					int finished, int threadCount, int progress, float filedown,
					float filesize, int filestatus,int btnstatus,float speed) {

		this.apkurl = apkurl;
		this.fileDir = fileDir;
		this.fileName = fileName;
		this.length = length;
		Dir = dir;
		this.finished = finished;
		this.threadCount = threadCount;
		this.progress = progress;
		this.filedown = filedown;
		this.filesize = filesize;
		this.filestatus = filestatus;
		this.btnstatus = btnstatus;
		this.speed = speed;
	}

	private boolean isFinished = false;
	private int filestatus;

	public int getFilestatus() {
		return filestatus;
	}

	public void setFilestatus(int filestatus) {
		this.filestatus = filestatus;
	}

	public boolean getIsFinished() {
		return isFinished;
	}

	public void setisFinished(boolean finished) {
		isFinished = finished;
	}




	public FileInfo() {
		super();
	}




	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getApkurl() {
		return apkurl;
	}
	public void setApkurl(String apkurl) {
		this.apkurl = apkurl;
	}
	public String getFileName() {
		return fileName;
	}

	public int getProgress() {
		return progress;
	}

	public void setProgress(int progress) {
		this.progress = progress;
	}

	public float getFiledown() {
		return filedown;
	}

	public void setFiledown(float filedown) {
		this.filedown = filedown;
	}

	public float getFilesize() {
		return filesize;
	}

	public void setFilesize(float filesize) {
		this.filesize = filesize;
	}

	public float getSpeed() {
		return speed;
	}

	public void setSpeed(float speed) {
		this.speed = speed;
	}

	@Override
	public String toString() {
		return "FileInfo{" +
				"id=" + id +
				", apkurl='" + apkurl + '\'' +
				", fileDir='" + fileDir + '\'' +
				", fileName='" + fileName + '\'' +
				", length=" + length +
				", Dir=" + Dir +
				", finished=" + finished +
				", threadCount=" + threadCount +
				", progress=" + progress +
				", filedown=" + filedown +
				", filesize=" + filesize +
				", btnstatus=" + btnstatus +
				", speed=" + speed +
				", isFinished=" + isFinished +
				", filestatus=" + filestatus +
				'}';
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}
	public int getLength() {
		return length;
	}
	public void setLength(int length) {
		this.length = length;
	}
	public int getFinished() {
		return finished;
	}
	public void setFinished(int finished) {
		this.finished = finished;
	}

	public String getFileDir() {
		return fileDir;
	}

	public void setFileDir(String fileDir) {
		this.fileDir = fileDir;
	}

	public File getDir() {
		return Dir;
	}

	public void setDir(File dir) {
		Dir = dir;
	}

	public int getThreadCount() {
		return threadCount;
	}

	public void setThreadCount(int threadCount) {
		this.threadCount = threadCount;
	}
}
